package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataPayrollDao;
import io.renren.entity.DataPayrollEntity;
import io.renren.service.DataPayrollService;



@Service("dataPayrollService")
public class DataPayrollServiceImpl implements DataPayrollService {
	@Autowired
	private DataPayrollDao dataPayrollDao;
	
	@Override
	public DataPayrollEntity queryObject(String id){
		return dataPayrollDao.queryObject(id);
	}
	
	@Override
	public List<DataPayrollEntity> queryList(Map<String, Object> map){
		return dataPayrollDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataPayrollDao.queryTotal(map);
	}
	
	@Override
	public void save(DataPayrollEntity dataPayroll){
		dataPayrollDao.save(dataPayroll);
	}
	
	@Override
	public void update(DataPayrollEntity dataPayroll){
		dataPayrollDao.update(dataPayroll);
	}
	
	@Override
	public void delete(String id){
		dataPayrollDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataPayrollDao.deleteBatch(ids);
	}

	@Override
	public DataPayrollEntity getNewRecord() {
		// TODO Auto-generated method stub
		return dataPayrollDao.getNewRecord();
	}

	@Override
	public void deleteByMonth(String month) {
		// TODO Auto-generated method stub
		dataPayrollDao.deleteByMonth(month);
	}

	
	
}
